package base.Day02;

import java.io.File;
import java.io.IOException;

public class BooleanDemo
{
    public static void main(String[] args)
    {
        boolean t = true;
        boolean f = false;
        System.out.println(t);
        System.out.println(f);
//        boolean gg = 2222;
        File file = new File("src/news2.txt");
        File file1 = new File("src","news3.txt");
        try
        {
            file.createNewFile();
            System.out.println("创建成功");
            file1.createNewFile();
            System.out.println("file1 创建文件");
        }catch (IOException e)
        {
            e.printStackTrace();
        }

        System.out.println(file.getParent());
        System.out.println(file.getPath());
        System.out.println(file.getAbsolutePath());
        System.out.println(file.isFile());
        System.out.println(file1.isDirectory());
        System.out.println(file.length());
    }

}
